package com.yun.service;


import com.yun.dao.DirectorMapper;

import com.yun.pojo.Director;
import com.yun.pojo.Schedule;
import com.yun.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class DirectorService implements DirectorMapper {

    @Autowired
   private DirectorMapper directorMapper;
    @Override
    public User queryByName(String rName) {
        return directorMapper.queryByName(rName);
    }

    @Override
    public List<Schedule> queryName() {
        return directorMapper.queryName();
    }
    @Override
    public int updateList(Schedule schedule) {
        return directorMapper.updateList(schedule);
    }

    @Override
    public Director queryEmail() {
        return directorMapper.queryEmail();
    }

}
